/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.hiof.voiceguide;

import android.content.Context;

/**
 *
 * @author manish
 */
public class Speaker {

    public static void speak(VoiceType voiceType, int artifactId) {
        Speakable commandNextSpeaker = VoiceFactory.getVoicePlayer(voiceType);
        commandNextSpeaker.setArtifact(artifactId);
        commandNextSpeaker.speak();
    }
    public static void speak(VoiceType voiceType, String artifactId) {
        Speakable commandNextSpeaker = VoiceFactory.getVoicePlayer(voiceType);
        commandNextSpeaker.setArtifact(artifactId);
        commandNextSpeaker.speak();
    }

    public static void initialize(Context context){
        TextToSpeechPlayer.getInstance().init(context);
    }

    public static void stop(){
        TextToSpeechPlayer.getInstance().destroy();
    }
}
